.class Lcom/teewoo/app/bus/ui/WebViewActivity$4;
.super Ljava/lang/Object;
.source "WebViewActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/teewoo/app/bus/ui/WebViewActivity;->initImageButton()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;


# direct methods
.method constructor <init>(Lcom/teewoo/app/bus/ui/WebViewActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/WebViewActivity$4;->this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;

    .line 128
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lcom/teewoo/app/bus/ui/WebViewActivity$4;)Lcom/teewoo/app/bus/ui/WebViewActivity;
    .locals 1
    .parameter

    .prologue
    .line 128
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/WebViewActivity$4;->this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;

    return-object v0
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 9
    .parameter "v"

    .prologue
    const/4 v5, 0x0

    const v1, 0x7f08001d

    const v3, 0x7f02005d

    .line 130
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/WebViewActivity$4;->this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/WebViewActivity;->access$3(Lcom/teewoo/app/bus/ui/WebViewActivity;)Landroid/widget/ImageView;

    move-result-object v0

    const v2, 0x7f020001

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 131
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/WebViewActivity$4;->this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/WebViewActivity;->access$4(Lcom/teewoo/app/bus/ui/WebViewActivity;)Landroid/widget/ImageView;

    move-result-object v0

    const v2, 0x7f020047

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 132
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/WebViewActivity$4;->this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/WebViewActivity;->access$5(Lcom/teewoo/app/bus/ui/WebViewActivity;)Landroid/widget/ImageView;

    move-result-object v0

    const v2, 0x7f02001d

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 134
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/WebViewActivity$4;->this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/WebViewActivity;->access$10(Lcom/teewoo/app/bus/ui/WebViewActivity;)Lcom/teewoo/app/bus/manager/collection/URLCollectionManager;

    move-result-object v0

    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WebViewActivity$4;->this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;

    invoke-static {v2}, Lcom/teewoo/app/bus/ui/WebViewActivity;->access$9(Lcom/teewoo/app/bus/ui/WebViewActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/teewoo/app/bus/manager/collection/URLCollectionManager;->find(Ljava/lang/String;)Lcom/teewoo/app/bus/model/collection/URLCollection;

    move-result-object v7

    .line 135
    .local v7, uCol:Lcom/teewoo/app/bus/model/collection/URLCollection;
    if-eqz v7, :cond_0

    .line 136
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/WebViewActivity$4;->this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;

    .line 138
    const v2, 0x7f080032

    .line 139
    new-instance v4, Lcom/teewoo/app/bus/ui/WebViewActivity$4$1;

    invoke-direct {v4, p0, v7}, Lcom/teewoo/app/bus/ui/WebViewActivity$4$1;-><init>(Lcom/teewoo/app/bus/ui/WebViewActivity$4;Lcom/teewoo/app/bus/model/collection/URLCollection;)V

    .line 136
    invoke-static/range {v0 .. v5}, Lcom/teewoo/app/bus/util/DialogUtil;->askDialog(Landroid/content/Context;IIILandroid/content/DialogInterface$OnClickListener;Landroid/content/DialogInterface$OnClickListener;)V

    .line 169
    :goto_0
    return-void

    .line 154
    :cond_0
    :try_start_0
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/WebViewActivity$4;->this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;

    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WebViewActivity$4;->this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;

    invoke-static {v2}, Lcom/teewoo/app/bus/ui/WebViewActivity;->access$9(Lcom/teewoo/app/bus/ui/WebViewActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/teewoo/app/bus/util/WebUtils;->getHtmlPage(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2}, Lcom/teewoo/app/bus/ui/WebViewActivity;->access$11(Lcom/teewoo/app/bus/ui/WebViewActivity;Ljava/lang/String;)V

    .line 155
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/WebViewActivity$4;->this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;

    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WebViewActivity$4;->this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;

    invoke-static {v2}, Lcom/teewoo/app/bus/ui/WebViewActivity;->access$12(Lcom/teewoo/app/bus/ui/WebViewActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/teewoo/app/bus/util/WebUtils;->getTitle(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2}, Lcom/teewoo/app/bus/ui/WebViewActivity;->access$13(Lcom/teewoo/app/bus/ui/WebViewActivity;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 160
    :goto_1
    new-instance v8, Lcom/teewoo/app/bus/model/collection/URLCollection;

    iget-object v0, p0, Lcom/teewoo/app/bus/ui/WebViewActivity$4;->this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/WebViewActivity;->access$14(Lcom/teewoo/app/bus/ui/WebViewActivity;)Ljava/lang/String;

    move-result-object v0

    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WebViewActivity$4;->this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;

    invoke-static {v2}, Lcom/teewoo/app/bus/ui/WebViewActivity;->access$9(Lcom/teewoo/app/bus/ui/WebViewActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-static {}, Lcom/teewoo/app/bus/util/Utils;->getLocCurrentTime()Ljava/lang/String;

    move-result-object v4

    invoke-direct {v8, v0, v2, v4}, Lcom/teewoo/app/bus/model/collection/URLCollection;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 161
    .local v8, urlCol:Lcom/teewoo/app/bus/model/collection/URLCollection;
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/WebViewActivity$4;->this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/WebViewActivity;->access$10(Lcom/teewoo/app/bus/ui/WebViewActivity;)Lcom/teewoo/app/bus/manager/collection/URLCollectionManager;

    move-result-object v0

    invoke-virtual {v0, v8}, Lcom/teewoo/app/bus/manager/collection/URLCollectionManager;->save(Lcom/teewoo/app/bus/model/collection/URLCollection;)V

    .line 163
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/WebViewActivity$4;->this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/WebViewActivity;->access$8(Lcom/teewoo/app/bus/ui/WebViewActivity;)Landroid/widget/ImageView;

    move-result-object v0

    const v2, 0x7f020013

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 164
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/WebViewActivity$4;->this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;

    .line 165
    const v2, 0x7f080033

    .line 166
    iget-object v4, p0, Lcom/teewoo/app/bus/ui/WebViewActivity$4;->this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;

    invoke-static {v4}, Lcom/teewoo/app/bus/ui/WebViewActivity;->access$15(Lcom/teewoo/app/bus/ui/WebViewActivity;)Landroid/content/DialogInterface$OnClickListener;

    move-result-object v4

    .line 164
    invoke-static/range {v0 .. v5}, Lcom/teewoo/app/bus/util/DialogUtil;->askDialog(Landroid/content/Context;IIILandroid/content/DialogInterface$OnClickListener;Landroid/content/DialogInterface$OnClickListener;)V

    goto :goto_0

    .line 156
    .end local v8           #urlCol:Lcom/teewoo/app/bus/model/collection/URLCollection;
    :catch_0
    move-exception v0

    move-object v6, v0

    .line 157
    .local v6, e:Ljava/lang/Exception;
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/WebViewActivity$4;->this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;

    const-string v2, "\u83b7\u53d6\u5931\u8d25"

    invoke-static {v0, v2}, Lcom/teewoo/app/bus/ui/WebViewActivity;->access$13(Lcom/teewoo/app/bus/ui/WebViewActivity;Ljava/lang/String;)V

    goto :goto_1
.end method
